package com.stu.reflection.factory;

public interface IAnimal {
  void eat();
}

class Cat implements IAnimal {
  @Override
  public void eat() {
    System.out.println("猫吃鱼");
  }
}

class Dog implements IAnimal {
  @Override
  public void eat() {
    System.out.println("狗吃肉");
  }
}